package cn.rongdao.jrkabao.model.deposit;

import com.mifengkong.frtools.http.request.HttpFunction;

import cn.rongdao.jrkabao.bean.deposit.BillBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2017/7/31
 */

public class GetBillModel extends BaseKaMaoModel {

    public static GetBillModel getInstance() {
        return getPresent(GetBillModel.class);
    }

    public void execute(Observer<BillBean> observer) {
        Observable<BillBean> observable = mServletApi.getBill(mParams).map(new HttpFunction<BillBean>());
        toSubscribe(observable, observer);
    }
}
